package demo.pattern.command;

/**
 * @author : GuoFei
 * @since : 2019/6/25 17:22
 */
public class BuyStock implements Order{

    private Stock abcStock;

    public BuyStock(Stock abcStock){
        this.abcStock = abcStock;
    }

    @Override
    public void execute() {
        abcStock.buy();
    }
}
